package com.aaa.dao.impl;

import com.aaa.dao.BaseDao;
import com.aaa.dao.RoleDao;
import com.aaa.entity.Role;

import java.util.List;

public class RoleDaoImpl implements RoleDao {
    private BaseDao baseDao = BaseDao.getInstance();

    @Override
    public List<Role> getAllRole() {
        String sql = "select * from role";
        return baseDao.executeQuery(sql,null,Role.class);
    }
}
